//
//  BaseViewController.m
//  DHBase
//
//  Created by Calvin on 2017/8/11.
//  Copyright © 2017年 Calvin. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self setNavigation];
    self.view.backgroundColor = RGB(241, 241, 241);
}

#pragma mark --
#pragma mark -- Setting Navigation
- (void)setNavigation{
    
    // 设置NavigationBar 和 Title
    //设置导航栏颜色
    [self.navigationController.navigationBar setBarTintColor:[UIColor whiteColor]];
    //导航栏没有半透明效果
    self.navigationController.navigationBar.translucent = NO;
    //设置导航栏标题颜色
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:17],NSForegroundColorAttributeName:[UIColor whiteColor]}];
    [self.navigationController.navigationBar setTintColor:[UIColor whiteColor]];
}

//-(void)getSubclass
//{
//    int numClasses;
//    Class *classes = NULL;
//    numClasses = objc_getClassList(NULL,0);
//    if (numClasses >0)
//    {
//        classes = (__unsafe_unretained Class *)malloc(sizeof(Class) * numClasses);
//        numClasses = objc_getClassList(classes, numClasses);
//        for (int i = 0; i < numClasses; i++) {
//            if (class_getSuperclass(classes[i]) == [BaseViewController class]){
//                NSLog(@"%@===%@",classes[i], NSStringFromClass(classes[i]));
//            }
//        }
//        free(classes);
//    }
//}

-(void)dealloc{
    
    [self.view removeFromSuperview];
}


@end
